#include <iostream>
using namespace std;

void print(int arr[], int len);
void heap_sort(int arr[], int base, int top);
void heap_ify(int arr[],int len, int cur);

int main()
{
    int arr[] = {9, 8, 7, 6, 5, 4, 3, 2, 1, 0};
    int len = sizeof(arr) / sizeof(int);

    print(arr, len);
    heap_sort(arr, 0, len - 1);
    print(arr, len);

    return 0;
}

void print(int arr[], int len)
{
    for (int i = 0; i < len; ++i)
    {
        cout << arr[i] << " ";
    }
    cout << endl;
}

void heap_sort(int arr[], int base, int top)
{   
    int len = top - base + 1;
    for(int i = len / 2 - 1; i >= 0 ; --i)
    {
        heap_ify(arr,len,i);
    }

    


}

void heap_ify()
{

}
